package com.example.zhaohang.bingzhuangtu;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

import com.alipay.euler.andfix.patch.PatchManager;

import cn.sharesdk.framework.ShareSDK;
import cn.smssdk.SMSSDK;

/**
 * Created by zhaohang on 2017/3/22.
 */

public class QQAppApolication extends Application {

    public static Context context;
    public static Handler  mainHandler;

    @Override
    public void onCreate() {
        super.onCreate();
        context = this;
        //https://github.com/alibaba/Andfix热修复网址

        //热修复固定套路
        PatchManager patchManager = new PatchManager(context);
//        版本号码
    patchManager.init("1.0");

        patchManager.loadPatch();

        //下载修复文件的路径
       // patchManager.addPatch(path);


        //第三方登录

        ShareSDK.initSDK(this);


        //短信验证
        //初始化
        SMSSDK.initSDK(this, "1cc81ec6c0e64", "67abaac01dc70ae7802582b1f5220889");


        //定义全局变量
        mainHandler = new Handler();

    }


}
